package com.btpj.shop.dto;

import com.btpj.shop.entity.Category;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * category 商品分类
 *
 * @author BTPJ
 */
@ApiModel("商品分类结果封装")
@Data
public class CategoryDto implements Serializable {

    @ApiModelProperty("Id")
    private Long id;

    @ApiModelProperty("分类级别（1：一级分类、2：二级分类）")
    private Byte level;

    @ApiModelProperty("父类别ID")
    private Long parentId;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("排序值（值越大越靠前）")
    private Integer sort;

    private static final long serialVersionUID = 1L;
}